﻿@model WXY.Course.Model.MenuInfo

@{
    ViewBag.Title = "Edit";
}
<div class="m_rtop">
    <h3>
        <label>
            内容管理
        </label>
        <span>></span>@(Model == null ? "添加" : "修改")目录
    </h3>
</div>
<div class="m_box">
    <div class="c_finfo">
        @using (Html.BeginForm("Edit", "Menu", FormMethod.Post))
        {
            @Html.ValidationSummary()
            <p>
                <label>
                    名称：
                </label>
                @Html.TextBoxFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </p>
            <p>
                <label>
                    链接地址：
                </label>
                @Html.TextBoxFor(model => model.Url)
                @Html.ValidationMessageFor(model => model.Url)
            </p>
            <p>
                <label>
                    排序号：
                </label>
                @Html.TextBoxFor(model => model.Order)
                @Html.ValidationMessageFor(model => model.Order)
            </p>
            <p>
                <label> </label>
                @Html.CheckBoxFor(model => model.TargetBlank) 在新标签页打开
            </p>
            <p class="m_btn">
                @Html.HiddenFor(m => m.Code)
                <input type="submit" id="btnSubmit" class="btn_bg1" value="提交">
                <input type="button" id="btnReturn" onclick="history.go(-1)" class="btn_bg1" value="返回">
            </p>
        }
    </div>
</div>
